package cn.cms.chuangjia.front;

import cn.cms.chuangjia.config.TextPaper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author oldliu
 * @since 1.0
 */
@RestController
public class PrinterController {
    @Autowired
    @Qualifier("a4")
    private TextPaper paper;

    @GetMapping("/showpaper")
    public String showPaper(){
        return String.valueOf(paper);
    }
}
